<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Vue liste utilisateurs</title>
</head>
<body>

	<form action="/personne/ShowEditForm"  method="post">
				<input type="submit" class="add" value=""/>Ajouter un nouvel utilisateur
	</form>
<table>

	<c:forEach items="${listPersonne }" var="pers">
		<tr>
			<td>
				${pers.name} 
			</td>
			<td>
				${pers.forName}
			</td>
			<td>
				${pers.getLastHandicap().year}
			</td>
			<td>
				${pers.getLastHandicap().previousHandicap}>${pers.getLastHandicap().currentHandicap}
			</td>
			<td>
				<a href="/personne/editHandicap?id=${pers.id}">${pers.getLastHandicap().categorie}</a> 
			</td>
			<td>
				<form action="/personne/ShowEditForm"  method="post">
					<input type="hidden" name="id" value="${pers.id}"/>
					<input type="submit"  class="edit" value=""/>
				</form>
			</td>
			<td>
				<form action="/personne/Delete"  method="post">
					<input type="hidden" name="id" value="${pers.id}"/>
					<input type="submit"  class="delete" value=""/>
				</form>
			</td>
		</tr>
	</c:forEach>
</table>
</body>
</html>